package com.scyshkj.university.wechat.pay;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

/**
 * Created by 唐旭 on 2016/11/22.
 */
public interface RechargeRepository extends JpaRepository<WechatUnifiedOrderRequestParameter, String> {

    @Query("from WechatUnifiedOrderRequestParameter p where p.out_trade_no=:outTradeNo")
    WechatUnifiedOrderRequestParameter findByOutTradeNo(@Param("outTradeNo") String outTradeNo);
}

